#ifndef BUTTON_H_INCLUDE 
#define BUTTON_H_INCLUDE

#include <windows.h>
#include <cstdio>

#define NOT_PUSH 0
#define IS_PUSH  1
#define IS_FLAG  2
#define UNKNOWN  3
#define BackColor RGB(0, 114, 109)

struct rank
{
	int wide, high;
	int TotalMine;
};

class Button
{
	public:
		int MineCnt;
		int state;
		COLORREF color;	
		static int BtnSize;
	
	public:
		Button();
		Button(int, int, COLORREF, int);
		
		void Reset();
		void IsLClicked(HDC, int, int, const POINT&);
		void IsPushing(HDC, int, int, const POINT&, bool);

		void DrawBtn(HDC, int, int, const POINT& pt);
};
#endif
